<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="java.util.*"%>
<%@page import="br.com.knowledge.persistence.hibernate.dao.CadFuncaoDAO"%>
<%@page	import="br.com.knowledge.persistence.hibernate.entities.CadFuncao"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>Funções</title>
		
		<s:url value="/css/style.css" var="cssStyle"></s:url>
		<link rel="stylesheet" type="text/css" href="${cssStyle}" media="screen">
		<script type="text/javascript">
		</script>

	</head>
	<body>
		<div style="width: 600px;">
			<s:actionmessage /><br>
			<a href="chama-cadfuncao">Cadastrar nova Funcão</a>
			<br><br>
			<display:table list="${funcoes}" uid="funcao" sort="list" id="idDt">
				<display:column property="nmfuncao" title="Nome Função"></display:column>
				<display:column property="descricao" title="Descrição"></display:column>
				<display:column title="" href="toChangeFuncao" paramId="funcToChange.id" paramProperty="id">Alterar</display:column>				
				<display:column title="" href="deletar-funcao" paramId="funcToChange.id" paramProperty="id">Deletar</display:column>
			</display:table>
		</div>
	</body>
</html>